package com.aspose.cells;

import java.util.Iterator;

class zadr extends zbz {
   zadr(int var1) {
      this.c(27);
      this.b = var1;
   }

   void a(HorizontalPageBreakCollection var1) {
      int var2 = var1.getCount();
      this.a((short)(2 + 6 * var2));
      this.c = new byte[this.d()];
      System.arraycopy(com.aspose.cells.b.a.zc.a(var2), 0, this.c, 0, 2);
      com.aspose.cells.b.a.a.zd var3 = new com.aspose.cells.b.a.a.zd(new zadi());
      boolean var4 = false;

      int var7;
      for(var7 = 0; var7 < var2; ++var7) {
         HorizontalPageBreak var5 = var1.get(var7);
         var3.a(var5, var5);
      }

      var7 = 0;

      for(Iterator var8 = var3.f().iterator(); var8.hasNext(); ++var7) {
         HorizontalPageBreak var6 = (HorizontalPageBreak)var8.next();
         System.arraycopy(com.aspose.cells.b.a.zc.a(var6.getRow()), 0, this.c, 6 * var7 + 2, 2);
         System.arraycopy(com.aspose.cells.b.a.zc.a(var6.getStartColumn()), 0, this.c, 6 * var7 + 4, 2);
         System.arraycopy(com.aspose.cells.b.a.zc.a(var6.getEndColumn()), 0, this.c, 6 * var7 + 6, 2);
      }

   }
}
